<%--
  Author hiberk
  Date: 2017/6/29
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/inc/tag.jsp" %>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <title>分销商详情页</title>
    <c:import url="/inc/manager/link.jsp"></c:import>
    <script type="text/javascript" language="javascript" src="${_PATH}/js/datepickerCN.js"></script>
    <script type="text/javascript" language="JavaScript" src="${_PATH}/js/distributor/count.js"></script>
</head>
<body class="page-header-fixed page-quick-sidebar-over-content page-sidebar-closed-hide-logo page-container-bg-solid">
<c:import url="/inc/manager/head.jsp"></c:import>
<div class="page-container">
    <div class="page-sidebar-wrapper">
        <c:import url="/inc/manager/left.jsp"></c:import>
    </div>
    <div class="page-content-wrapper">
        <div class="page-content">
            <!-- BEGIN PAGE HEADER-->
            <h3 class="page-title">
                首页
                <small>概况</small>
            </h3>
            <div class="row">
                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="dashboard-stat blue-madison">
                        <div class="visual">
                            <i class="fa fa-comments"></i>
                        </div>
                        <div class="details">
                            <div class="number">
                               <c:if test="${empty accountTotal }">
                           		 ￥0
                            	</c:if>
                           		<c:if test="${!empty accountTotal }">
                                   	 ￥<fmt:formatNumber type="number" value="${tradeTotal} " maxFractionDigits="2"/>
                            	</c:if>
                            </div>
                            <div class="desc">
                                账面总金额
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="dashboard-stat red-intense">
                        <div class="visual">
                            <i class="fa fa-bar-chart-o"></i>
                        </div>
                        <div class="details">
                            <div class="number">
                                ${orderCount}
                                
                            </div>
                            <div class="desc">
                                订单数
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="dashboard-stat green-haze">
                        <div class="visual">
                            <i class="fa fa-shopping-cart"></i>
                        </div>
                        <div class="details">
                            <div class="number">
                               	<c:if test="${empty tradeTotal }">
                           		 ￥0
                            	</c:if>
                            	<c:if test="${!empty tradeTotal }">
                                    ￥<fmt:formatNumber type="number" value="${accountTotal} " maxFractionDigits="2"/>
                              	 </c:if>
                            </div>
                            <div class="desc">
                                成交金额
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="dashboard-stat purple-plum">
                        <div class="visual">
                            <i class="fa fa-globe"></i>
                        </div>
                        <div class="details">
                            <div class="number" id="totalCommission">
                                
                               	<c:if test="${empty commissionTotal }">
                           		 ￥0
                            	</c:if>
                            	<c:if test="${!empty commissionTotal }">
                              	  ￥<fmt:formatNumber type="number" value="${commissionTotal}" maxFractionDigits="2"/>
                              	 </c:if>
                            </div>
                            <div class="desc">
                                成交金额分成
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- END PAGE HEADER-->
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet green box">
                        <div class="portlet-title">
                            <div class="caption">
                                <i class="fa fa-cogs"></i>总渠道数据
                            </div>
                            <div class="tools">
                                <a class="collapse" href="javascript:;" data-original-title="" title="">
                                </a>
                                <a class="config" data-toggle="modal" href="#portlet-config" data-original-title=""
                                   title="">
                                </a>
                                <a class="reload" href="javascript:;" data-original-title="" title="">
                                </a>
                                <a class="remove" href="javascript:;" data-original-title="" title="">
                                </a>
                            </div>
                        </div>
                        <div class="portlet-body">
                            <form class="form form-inline" role="form" id="_listForm"
                                  onkeydown="if(event.keyCode==13)return false;">
                                <div class="form-group">
                                    <div class="input-prepend input-group">
                                        <span class="add-on input-group-addon"><i class="glyphicon glyphicon-calendar fa fa-calendar"></i></span>
                                        <input type="text" value="" readonly="" class="form-control input-medium date-picker" placeholder="日期起" name="start_time" style="width: 200px;" id="start">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="input-prepend input-group">
                                        <span class="add-on input-group-addon"><i class="glyphicon glyphicon-calendar fa fa-calendar"></i></span>
                                        <input type="text" value="" readonly="" class="form-control input-medium date-picker" placeholder="日期止" name="end_time" style="width: 200px;" id="last">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <button class="btn btn-primary" type="button" id="queryBtn">搜索</button>
                                </div>
                                <div class="form-group">
                                    <button class="btn btn-default" type="button" id="clear">清空</button>
                                </div>
                                <div id="_dataList">
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- END CONTENT -->
    </div>
</div>
<c:import url="/inc/manager/foot.jsp"></c:import>
</body>
</html>
